projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bd4d0e
)
(Fvertical_motion): Use position reported by iterator
author
Chong Yidong
<cyd@stupidchicken.com>
Wed, 17 Sep 2008 20:29:04 +0000
(20:29 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Wed, 17 Sep 2008 20:29:04 +0000
(20:29 +0000)
instead of PT for determining screen motion (bug#943).
src/indent.c
patch
|
blob
|
history
diff --git
a/src/indent.c
b/src/indent.c
index edb445c296faf6143b665133f5b80dd98063cfa5..ba4787aa1c544b0ba9ed0cc5aa8a975290bd16ad 100644
(file)
--- a/
src/indent.c
+++ b/
src/indent.c
@@
-2109,7
+2109,7
@@
whether or not it is currently displayed in some window. */)
}
else
{
- if (IT_CHARPOS (it) >
PT
)
+ if (IT_CHARPOS (it) >
it_start
)
{
/* IT may move too far if truncate-lines is on and PT
lies beyond the right margin. In that case,
@@
-2135,7
+2135,7
@@
whether or not it is currently displayed in some window. */)
from the last line that it occupies. */
if (PT < ZV)
{
- while (IT_CHARPOS (it) <=
PT
)
+ while (IT_CHARPOS (it) <=
it_start
)
{
it.vpos = 0;
move_it_by_lines (&it, 1, 0);